
public class shoppingCar {
    private String id;//编号
    private String number;//名称
    private int price;
    private String type;
    public shoppingCar() {
    }

    public shoppingCar(String id, String number) {
        this.id = id;
        this.number = number;
    }

    public shoppingCar(String id, String number, int price) {
        this.id = id;
        this.number = number;
        this.price = price;
    }

    public shoppingCar(String id, String number, int price, String type) {
        this.id = id;
        this.number = number;
        this.price = price;
        this.type = type;
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取
     * @return number
     */
    public String getNumber() {
        return number;
    }

    /**
     * 设置
     * @param number
     */
    public void setNumber(String number) {
        this.number = number;
    }

    public String toString() {
        return "shoppingCar{id = " + id + ", number = " + number + "}";
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    /**
     * 获取
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }
}